package com.aurora.spider.houyuantuan;

import com.geccocrawler.gecco.annotation.*;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.HtmlBean;

import java.util.List;

/**
 * Created by jackie on 18/1/15. https://www.houyuantuan.com/mingxing/7/guanxi.html
 */
@Gecco(matchUrl="https://www.houyuantuan.com/mingxing/{starId}/guanxi.html", pipelines={"consolePipeline","guanxiDealLine"})
public class Guanxi implements HtmlBean {

    @Request
    private HttpRequest request;

    @RequestParameter
    private Long starId;

    @Text
    @HtmlField(cssPath="body > div.wrapper > div.container > div > div.mod-info > div.info > div > h1")
    private  String userName;

    // 查询结果
    @HtmlField(cssPath="body > div.wrapper > div.container > div > div.mod-map > div.bd > ul >li ")
    private List<HitProject> projectList;

    public HttpRequest getRequest() {
        return request;
    }

    public void setRequest(HttpRequest request) {
        this.request = request;
    }

    public List<HitProject> getProjectList() {
        return projectList;
    }

    public Long getStarId() {
        return starId;
    }

    public void setStarId(Long starId) {
        this.starId = starId;
    }

    public void setProjectList(List<HitProject> projectList) {
        this.projectList = projectList;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

}
